package me.yobol.blog.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import me.yobol.blog.bean.PermissionBean;

public interface IPermissionDAO {

	public void save(Connection ctn,PermissionBean ur) throws SQLException;
	
	public PermissionBean delete(Connection ctn,int userId) throws SQLException;
	
	public void update(Connection ctn,int userId,int roleId) throws SQLException;

	public PermissionBean getByUserId(Connection ctn,int userId) throws SQLException;
	public List<PermissionBean> getByRoleId(Connection ctn,int roleId) throws SQLException;
}
